package com.example.park2212.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_base.entity.AnnouncementBean
import com.example.lib_base.entity.HomeEntityResultItem
import com.example.park2212.R

class HomeAdapter:BaseQuickAdapter<HomeEntityResultItem,BaseViewHolder>(R.layout.item_home) {
    override fun convert(helper: BaseViewHolder, item: HomeEntityResultItem) {
        helper.setText(R.id.home_title,item.title)
        helper.setText(R.id.home_context,item.content)
        helper.setText(R.id.home_time,item.publishTime)
    }
}